import { defineStore } from "pinia";
import piniaPersistConfig from "@/store/helper/persist";

export const useGlobalStore = defineStore({
  id: "frame-auth",
  state: () => ({
    // 扁平化路由
    flattenRouters: [],
    // 接口获取的路由
  }),
  actions: {
    // setFlattenRouters(){}
  },
  persist: piniaPersistConfig("frame-global"),
});
